package com.zdyg.insert.controller;

import com.zdyg.insert.pojo.IdCard;
import com.zdyg.insert.pojo.SysUser;
import com.zdyg.insert.service.IIdCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassNameIdCardController
 * @Description
 * @Author ange
 * @Date2019/12/4 18:06
 * @Version V1.0
 **/

@Controller
public class IdCardController {
    @Autowired
    private IIdCardService idCardService;


    @ResponseBody
    @RequestMapping("insert")
    public boolean insertIdCard(IdCard idCard){
        System.out.println(idCard);
        return idCardService.insert(idCard);
    }

    @ResponseBody
    @RequestMapping("insertUser")
    public Integer insertUser(SysUser sysUser){
            return idCardService.insertUser(sysUser);
    }
}